<h:html xmlns:h="http://www.w3.org/1999/xhtml"
        xmlns="http://www.w3.org/2002/xforms"
	  xmlns:ev="http://www.w3.org/2001/xml-events"
	  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	  xmlns:jr="http://openrosa.org/javarosa">
<h:head>
    <h:title>RichMedia testing Images and Audio</h:title>
    <meta jr:name="rm-subforms-test"/>
    <model>
		<instance>
			<test>
				<name />
				<fav-sport />
				<color />
				<language />
				<stuff />
			</test>
		</instance>
		<bind nodeset="/test/name" required="true()" />
		<bind nodeset="/test/fav-sport" required="true()" />
		<bind nodeset="/test/color" required="true()" />
		<bind nodeset="/test/language" required="true()" />
		<itext>
			<translation lang="English" default="">
				<text id="name">
				  	<value form="long">What is your name?</value>
					<value form="short">Name</value>
				</text>
				<text id="favorite-sport">
					<value form="long">Pick your favorite sport!</value>
					<value form="short">PickSport</value>
				</text>
				<text id="baseball">
					<value form="image">jr://images/baseball.gif</value>
					<value form="long">Baseball</value>
					<value form="short">bball</value>
				</text>
				<text id="basketball">
					<value form="image">jr://images/basketball.gif</value>
					<value form="long">Basketball</value>
					<value form="short">Otherbball</value>
				</text>
				<text id="football">
					<value form="image">jr://images/football.gif</value>
					<value form="long">Football</value>
					<value form="short">foozeball</value>
				</text>
				<text id="tennis">
					<value form="image">jr://images/tennis.gif</value>
					<value form="long">Tennis</value>
					<value form="short">tennis</value>
				</text>					
				<text id="fav-color">
					<value form="long">What is your favorite color?</value>
					<value form="short">FavColor</value>
				</text>
				<text id="red">
					<value form="image">jr://images/red.gif</value>
					<value form="long">Red</value>
					<value form="short">red</value>
					<value form="audio">jr://audio/red.wav</value>
				</text>
				<text id="blue">
					<value form="image">jr://images/blue.gif</value>
					<value form="long">Blue</value>
					<value form="short">blue</value>
					<value form="audio">jr://audio/blue.wav</value>
				</text>
				<text id="green">
					<value form="image">jr://images/green.gif</value>
					<value form="long">Green</value>
					<value form="short">green</value>
					<value form="audio">jr://audio/green.wav</value>
				</text>
				<text id="lang-shower">
					<value form="long">Press # to change language</value>
					<value form="image">jr://images/english.gif</value>
					<value form="audio">jr://audio/english.wav</value>
					<value form="short">languageChange</value>
				</text>
			</translation>
			<translation lang="Afrikaans">
				<text id="name">
				  	<value form="long">Wat is jou naam?</value>
					<value form="short">Naam</value>
				</text>
				<text id="favorite-sport">
					<value form="long">Pik jou gunsteling sport</value>
					<value form="short">Sport</value>
				</text>
				<text id="baseball">
					<value form="image">jr://images/baseball.gif</value>
					<value form="long">Baseball</value>
					<value form="short">bball</value>
				</text>
				<text id="basketball">
					<value form="image">jr://images/basketball.gif</value>
					<value form="long">Basketbal</value>
					<value form="short">Otherbball</value>
				</text>
				<text id="football">
					<value form="image">jr://images/football.gif</value>
					<value form="long">Sokker</value>
					<value form="short">foozeball</value>
				</text>
				<text id="tennis">
					<value form="image">jr://images/tennis.gif</value>
					<value form="long">Tennis</value>
					<value form="short">tennis</value>
				</text>					
				<text id="fav-color">
					<value form="long">Wat is jou gunsteling kleur?</value>
					<value form="short">Kleur</value>
				</text>
				<text id="red">
					<value form="image">jr://images/red.gif</value>
					<value form="long">Rooi</value>
					<value form="short">rooi</value>
					<value form="audio">jr://audio/rooi.wav</value>
				</text>
				<text id="blue">
					<value form="image">jr://images/blue.gif</value>
					<value form="long">Blou</value>
					<value form="short">blou</value>
					<value form="audio">jr://audio/blou.wav</value>
				</text>
				<text id="green">
					<value form="image">jr://images/green.gif</value>
					<value form="long">Groen</value>
					<value form="short">groen</value>
					<value form="audio">jr://audio/groen.wav</value>
				</text>
				<text id="lang-shower">
					<value form="long">Druk # om die taal te verander</value>
					<value form="image">jr://images/afrikaans.gif</value>
					<value form="short">taalVerander</value>
					<value form="audio">jr://audio/afrikaans.wav</value>
				</text>
			</translation>
		</itext>

	</model>
</h:head>

<h:body>
	<input ref="name"><label ref="jr:itext('name')" /></input>
	<select1 ref="fav-sport">
		<label ref="jr:itext('favorite-sport')" />
		<item><label ref="jr:itext('baseball')"/><value>baseball</value></item>
		<item><label ref="jr:itext('basketball')"/><value>basketball</value></item>
		<item><label ref="jr:itext('football')" /><value>football</value></item>
		<item><label ref="jr:itext('tennis')"/><value>tennis</value></item>
	</select1>
	<select1 ref="color">
		<label ref="jr:itext('fav-color')" />
		<item><label ref="jr:itext('red')" /><value>red</value></item>
		<item><label ref="jr:itext('green')" /><value>green</value></item>
		<item><label ref="jr:itext('blue')" /><value>blue</value></item>
	</select1>
	<input ref="language"><label ref="jr:itext('lang-shower')" /></input>
			
</h:body>
</h:html>